package org.mics.organization.service;

import java.util.List;

import org.mics.core.page.PageQuery;
import org.mics.core.response.PageDataResponse;
import org.mics.organization.entity.DepartmentDO;
import org.mics.organization.request.DepartmentRequst;
import org.mics.organization.vo.DepartmentVO;

/**
 * 部门
 * @author mics
 * @date 2023-9-22
 * @version  1.0
 */
public interface DepartmentService {

	/**
	 * 增加部门
	 * @author mics
	 * @date 2023-9-22
	 * @version  1.0
	 * @param departmentRequst 部门信息
	 * @return 部门id
	 */
	String add(DepartmentRequst departmentRequst);
	
	/**
	 * 删除部门
	 * @author mics
	 * @date 2023-9-22
	 * @version  1.0
	 * @param id
	 */
	void delete(String id);

	
	/**
	 * 部门分页列表
	 * @author mics
	 * @date 2023-9-22
	 * @version  1.0
	 * @param pageQuery
	 * @return
	 */
	PageDataResponse<DepartmentVO> listByPage(PageQuery pageQuery);

	/**
	 * 部门列表
	 * @author mics
	 * @date 2023-10-10
	 * @version  1.0
	 * @param name  部门名称
	 * @return 部门列表
	 */
	List<DepartmentDO> list(String name);


}
